﻿
using SHKF.B2C.Model.Entity.LM;
using SHKF.B2C.Model.Entity.Order;
using SqlSugar;
using System; 
namespace SHKF.B2C.BLL.LM
{
    public class OrderIDBLL : LMBLL
    {
        public OrderIDBLL(SqlSugarClient db) : base(db)
        {

        }

        public long GetOrderID()
        {
            OrderID order = new OrderID();
            order.CreateDate = DateTime.Now;

            long id = db
                .Insertable<OrderID>(order)
                .ExecuteReturnBigIdentity();

            return id;
        }
    }
}
